<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <style>
        #box{
            position: relative;
        }
        #inder {
            position: absolute;
            height: 200px;
            width: 200px;
            border: 1px solid red;
        }
    </style>
    <script src="./drag.js"></script>
    <div id="box">
        <div id="inder"></div>
    </div>

    <script>
        draggable(box)
    </script>
</body>

</html>